﻿using cd.dapper.extension;

namespace EntityModel.PageListInfor
{
    /// <summary>
    /// 分页信息实体类
    /// </summary>
    public class Pagination
    {
        public Pagination()
        {
            IsCount = true;
            PageSize = 10;
            PageIndex = 1;
        }
        [NotWrited]
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        [NotWrited]
        /// <summary>
        /// 每页显示多少条
        /// </summary>
        public int PageSize { get; set; }
        [NotWrited]
        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortBy { get; set; }
        [NotWrited]
        /// <summary>
        /// 排序类型
        /// </summary>
        public SortAction SortOrder { get; set; }
        [NotWrited]
        /// <summary>
        /// 是否统计总数
        /// </summary>
        public bool IsCount { get; set; }

    }
}
